<?php if (!defined('BASEPATH')) die();
class Market extends Main_Controller {

   	public function index()
	{
	  
	}
	public function view($id,$msg = NULL)
	{
		$data['message'] = $msg;
		$data['title'] = "Grab Grocery - User Profile";
		
		$this->load->view('include/header',$data);
		$this->load->view('templates/menubar');
		$this->load->view('market',$data);
		$this->load->view('include/footer');
	}
	
	public function categories($id=NULL,$msg = NULL)
	{
		if(!$id){
			show_404();
		}
		$data['message'] = $msg;
		$data['title'] = "Grab Grocery - User Profile";
		$this->load->view('include/header',$data);
		$this->load->view('templates/menubar');
		$this->load->view('market',$data);
		$this->load->view('include/footer');
	}
	
	public function items($id=NULL,$category_id=NULL,$msg = NULL)
	{
		if(!$category_id && !$category_id){
			show_404();
		}
		$data['message'] = $msg;
		$data['title'] = "Grab Grocery - User Profile";
	
		$this->load->view('include/header',$data);
		$this->load->view('templates/menubar');
		$this->load->view('items',$data);
		$this->load->view('include/footer');
	}

}

/* End of file frontpage.php */
/* Location: ./application/controllers/frontpage.php */
